package com.example.kekewaimaibao.address.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: xuxiang
 * @date: 2022/3/11 20:54 星期五
 * @description:
 * @version: 1.0
 */
@Data
@TableName("keke_address")
public class AddressDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId("address_id")
    private Long addressId;
    @TableField("user_id")
    private Long userId;
    @TableField("user_name")
    private String userName;
    @TableField("sex")
    private String sex;
    @TableField("phone")
    private String phone;
    @TableField("province")
    private String province;
    @TableField("city")
    private String city;
    @TableField("district")
    private String district;
    @TableField("longitude")
    private String longitude;
    @TableField("latitude")
    private String latitude;
    @TableField("address_detail")
    private String addressDetail;
    @TableField("address_default")
    private String addressDefault;
    @TableLogic
    private String delFlag;
    @TableField("create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField("update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    @TableField("remark")
    private String remark;
}